<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:py="http://genshi.edgewall.org/"
	xmlns:xi="http://www.w3.org/2001/XInclude">
<xi:include href="master.html" />
<head>
<meta content="text/html; charset=UTF-8" http-equiv="content-type"
	py:replace="''" />
</head>

${submit_filter(element='project_customer_form',
connect_to=['select.customer', 'select.currency'])}


<py:def function="portlet_action()">
	${portlet_action_projects()}
</py:def>

<body id="document" class="tab-grey ">

<div id="view">
		<form method="get" name="project_new_form"
			id="project_new_form" action="${tg.url('new')}">
		<table class="summary">
			<tbody>
				<tr>
					<th>${this.mapper_general['customer']}</th>
					<td><select id="new_project.customer_id" name="new_project.customer_id"
						size="1">
						<option py:if="customer" value="${customer.customer_id}">${customer['customer_id']}:
						${customer['company_name']}</option>
						<option value=""></option>
						<option py:for="customer in this.pcustomers"
							value="${customer.customer_id}">${customer.customer_id}:
						${customer.company_name}</option>
					</select><span py:if="'customer_id' in errors" class="error">${errors['customer_id']}</span></td>
				</tr>
				<tr py:for="col in this.iterator_project_form">
					<th>${this.mapper_project[col]}</th>
					<td py:if="col in ['description']">
						<span py:if="col in errors" class="error">${errors[col]}</span>
						<textarea id="new_project.${col}"
						name="new_project.${col}" cols="40" row="3" >${new_project[col]}</textarea>

					</td>
						<td py:if="col not in ['description', 'begindate', 'enddate']">
						<input type="text" id="new_project.${col}"
						name="new_project.${col}" value="${new_project[col]}"/>
						<span py:if="col in errors" class="error">${errors[col]}</span>
						</td>
						<td py:if="col in ['begindate','enddate']">
						<py:if test="col == 'begindate'">${calendar_begindate.display()}</py:if>
						<py:if test="col == 'enddate'">${calendar_enddate.display()}</py:if>
						</td>
				</tr>
			</tbody>
		</table>
			<input id="actions.save_project" name="actions.save_project" value="${this.mapper_action['save']}" class="button"
				type="submit" />
		</form>

</div>
</body>
</html>
